package org.ykh.gmall.order;

import org.ykh.gmall.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.SchemaProperty;
import lombok.Data;

import java.util.Date;

@Data
@Schema(description = "订单优惠券关联表")
@TableName("order_detail_coupon")
public class OrderDetailCoupon extends BaseEntity {
   
   private static final long serialVersionUID = 1L;
   
   @SchemaProperty(name = "订单id")
   @TableField("order_id")
   private Long orderId;

   @SchemaProperty(name = "订单明细id")
   @TableField("order_detail_id")
   private Long orderDetailId;

   @SchemaProperty(name = "购物券ID")
   @TableField("coupon_id")
   private Long couponId;

   @SchemaProperty(name = "skuID")
   @TableField("sku_id")
   private Long skuId;

   @SchemaProperty(name = "创建时间")
   @TableField("create_time")
   private Date createTime;

}